import {createStore, applyMiddleware} from 'redux'
import trunk from 'redux-thunk'
import createLogger from 'redux-logger'
import rootReducer from './reducers'


function configureStore(initialState) {
    return createStore(
        rootReducer,
        initialState,
        applyMiddleware(trunk,createLogger)
    );
}

const store = configureStore();
export default store;
